package com.qffx.moviebase.utils.retrofit;
import com.qffx.moviebase.bean.classify.ClassifyEntity;
import com.qffx.moviebase.bean.classify.SpeacialMoreEntity;
import com.qffx.moviebase.bean.find.FindMovieEntity;
import com.qffx.moviebase.bean.find.FindNewestEntity;
import com.qffx.moviebase.utils.DiscoverURL;
import com.qffx.moviebase.utils.Url;
import retrofit2.Call;
import retrofit2.http.GET;
import rx.Observable;

import retrofit2.http.Query;




/**
 * Created by 韩爽 on 2017/2/7.
 */

public interface HttpService {

    @GET(Url.Recommend)
    Observable<String> getRecommend();


    @GET("http://www.moviebase.cn/uread/app/category/categoryList?platform=2&resolutionWidth=800&sysver=4.2.2&channelId=1007&appVersion=1.7.0&deviceModel=GT-P5210&versionCode=1070&osType=2&resolutionHeight=1280&deviceId=6BCDA326BEAA8A220F0A5870EA7BEAF9")
    Call<ClassifyEntity> getSpeacialData(@Query("page") int page);
    @GET("http://www.moviebase.cn/uread/app/topic/topicList?pageContext=1&platform=2&resolutionWidth=800&sysver=4.2.2&channelId=1007&appVersion=1.7.0&deviceModel=GT-P5210&versionCode=1070&osType=2&resolutionHeight=1280&deviceId=6BCDA326BEAA8A220F0A5870EA7BEAF9")
    Call<SpeacialMoreEntity> getspecialMore();

    @GET(DiscoverURL.NEWEST)
    Observable<FindNewestEntity> getFindInformation(@Query("pageContext") int pageContext);

    @GET(DiscoverURL.MOVIEINFO)
    Observable<FindMovieEntity> getMovieInformation(@Query("id") String id);
}

